package sys.news.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 分页实体类
 */
public class Page<E> implements Serializable {
    private int currPageNo = 1;//当前页码
    private int pageSize = 15;//页面大小，即每页显示记录数
    private int totalCount;//记录总页数
    private int totalPageCount;//总页数
    private List<E> date;//每页新闻合集
    //无参构造函数
    public Page() {
    }
    //get/set访问方法

    public int getCurrPageNo() {
        return currPageNo;
    }

    public void setCurrPageNo(int currPageNo) {
        this.currPageNo = currPageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPageCount() {
        return totalPageCount;
    }

    public void setTotalPageCount(int totalPageCount) {
        this.totalPageCount = totalPageCount;
    }

    public List<E> getDate() {
        return date;
    }

    public void setDate(List<E> date) {
        this.date = date;
    }
}
